<?php
/* @var $this AskController */
/* @var $model Ask */

$this->breadcrumbs = array(
    '交互平台' => array('ask'),
    $model->title,
);

?>
<div class="panel panel-box" style="overflow:hidden;">
    <div class="panel-heading">
        <h3 class="panel-title">交互平台</h3>
    </div>
<div class="panel-body" style="padding:15px">
<?php $this->widget('AskNav'); ?>
<br/>

    <?php
    if ($_GET['page'] > 1)
    {
        $this->renderPartial('replyPage', array(
            'model' => $model,
            'page'=>$page,
        ));
    }
    else 
    {
        $this->renderPartial('_reply', array(
            'model' => $model,
        ));
    }
    ?>

<div class="clear"></div>

<div class="pager">
    <?php $this->widget('CLinkPager', array(
        'pages' => $page,
    )) ?>
</div>
<div id="reply-area">
    <div id="reply-form">
         <?php if (!$model->isClose): ?>
            <div class="title"><?php echo Yii::t('ask/views', 'Post a reply') ?></div>
            <?php $this->renderPartial('_replyform', array('model' => $askReply)); ?>
        <?php else : ?>
            <div class="title"><?php echo Yii::t('ask/views', 'This was closed, cant\'t reply!') ?></div>
        <?php endif; ?>
    </div>
</div>
</div>
</div>
